/*============================================================================*/
/*  Copyright (C) 2009-2014, iSOFT INFRASTRUCTURE SOFTWARE CO.,LTD.
 *  
 *  All rights reserved. This software is iSOFT property. Duplication 
 *  or disclosure without iSOFT written authorization is prohibited.
 *  
 *  @file       <PduR_Cfg.c>
 *  @brief      <>
 *  
 *  <MCU:TC1782>
 *  
 *  @author     <>
 *  @date       <2016-08-31 14:17:37>
 */
/*============================================================================*/


/*=======[V E R S I O N  I N F O R M A T I O N]===============================*/
#define PDUR_CFG_C_AR_MAJOR_VERSION  2
#define PDUR_CFG_C_AR_MINOR_VERSION  3
#define PDUR_CFG_C_AR_PATCH_VERSION  0
#define PDUR_CFG_C_SW_MAJOR_VERSION  1
#define PDUR_CFG_C_SW_MINOR_VERSION  0
#define PDUR_CFG_C_SW_PATCH_VERSION  0

/*=======[I N C L U D E S]====================================================*/
#include "PduR.h"

#include "CanIf.h"
#include "CanIf_Cbk.h"
#include "Com.h"
#include "Com_Cbk.h"

/*=======[V E R S I O N  C H E C K]===========================================*/
#if (PDUR_CFG_C_AR_MAJOR_VERSION != PDUR_CFG_H_AR_MAJOR_VERSION)
  #error "PduR_Cfg.c : Mismatch in Specification Major Version"
#endif
#if (PDUR_CFG_C_AR_MINOR_VERSION != PDUR_CFG_H_AR_MINOR_VERSION)
  #error "PduR_Cfg.c : Mismatch in Specification Major Version"
#endif
#if (PDUR_CFG_C_AR_PATCH_VERSION != PDUR_CFG_H_AR_PATCH_VERSION)
  #error "PduR_Cfg.c : Mismatch in Specification Major Version"
#endif
#if (PDUR_CFG_C_SW_MAJOR_VERSION != PDUR_CFG_H_SW_MAJOR_VERSION)
  #error "PduR_Cfg.c : Mismatch in Specification Major Version"
#endif
#if (PDUR_CFG_C_SW_MINOR_VERSION != PDUR_CFG_H_SW_MINOR_VERSION)
  #error "PduR_Cfg.c : Mismatch in Specification Major Version"
#endif

/*=======[M A C R O S]========================================================*/

/*=======[T Y P E   D E F I N I T I O N S]====================================*/

/*=======[E X T E R N A L   D A T A]==========================================*/

#define PDUR_START_SEC_CONST_UNSPECIFIED
#include "PduR_MemMap.h"
CONST(PduRLoIfTransmitType, CANIF_CONST) PduRLoIf_Transmit[PDUR_MAX_BUSTYPE_NUMBER] =
{
#if(STD_ON == PDUR_CANIF_SUPPORT)
    CanIf_Transmit,
#else
    NULL_PTR,
#endif
#if(STD_ON == PDUR_LINIF_SUPPORT)
    LinIf_Transmit,
#else
    NULL_PTR,
#endif
#if(STD_ON == PDUR_IPDUM_SUPPORT)
    IpduM_Transmit
#else
    NULL_PTR
#endif
};
#define PDUR_STOP_SEC_CONST_UNSPECIFIED
#include "PduR_MemMap.h"

#define PDUR_START_CONST_PBCFG
#include "PduR_MemMap.h"
CONST(PduR_ComDestTxPduType, PDUR_CONST) PduRComDestTxPdu[PDUR_MAX_COMDESTTXPDU_NUMBER] =
{
    {
        CANIF_TXPDUID_TXPDU_0,
        PDUR_CAN
    },
    {
        CANIF_TXPDUID_TXPDU_1,
        PDUR_CAN
    },
};
#define PDUR_STOP_CONST_PBCFG
#include "PduR_MemMap.h"

#define PDUR_START_CONST_PBCFG
#include "PduR_MemMap.h"
CONST(PduR_IfConfPduType, PDUR_CONST) PduRIfConfPdu[PDUR_MAX_IFCONFPDU_NUMBER] =
{
    {
        COM_TXPDU_0,
        PDUR_COM
    },
    {
        COM_TXPDU_1,
        PDUR_COM
    },
};
#define PDUR_STOP_CONST_PBCFG
#include "PduR_MemMap.h"


#define PDUR_START_CONST_PBCFG
#include "PduR_MemMap.h"
CONST(PduR_IfDestRxPduType, PDUR_CONST) PduRIfDestRxPdu[PDUR_MAX_IFDESTRXPDU_NUMBER] =
{
	{
		COM_RXPDU_0,
		PDUR_COM,
	},
	{
		COM_RXPDU_1,
		PDUR_COM,
	},
};
#define PDUR_STOP_CONST_PBCFG
#include "PduR_MemMap.h"

#define PDUR_START_CONST_PBCFG
#include "PduR_MemMap.h"
CONST(PduR_IfSrcRxPduType, PDUR_CONST) PduRIfSrcRxPdu[PDUR_MAX_IFSRCRXPDU_NUMBER] =
{
    {
        0,
        0
    },
    {
        1,
        1
    },
};
#define PDUR_STOP_CONST_PBCFG
#include "PduR_MemMap.h"


/*=======[E N D   O F   F I L E]==============================================*/